/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.drivers;

import nominalitzacions.domain.Language;
import nominalitzacions.domain.Languages;

/**
 *
 * @author marc.mauri
 */
public class LanguagesDriver {

    public static void main(String[] args) {
        Languages langs = new Languages();
        Language lang1 = new Language();
        Language lang2 = new Language();

        lang1.setLanguageName("English");
        lang2.setLanguageName("Spanish");

        langs.addLanguage(lang1);
        langs.addLanguage(lang2);

        String[] languageNames = langs.getLanguageNames();

        for (int i = 0; i < languageNames.length; ++i)
            System.out.println(languageNames[i] );
    }

}
